#include <stdio.h>
#include <string.h>

int main(int argc, char*argv[])
{
	char str[5] = "";
	char trash[10] = "";
	fgets(str, 5, stdin);
	if (str[strlen(str)-1] != '\n') {
		while(1) {
			fgets(trash, 10, stdin);
			printf("trash:%s-\n", trash);
			if (trash[strlen(trash) - 1] == '\n') {
				break;
			}
		}
	}

	printf("str:%s-\n", str);
	return 0;
}
